import tpl from './index.ejs';
import './index.scss';
import { tplReplace } from '../../../utils/tool';
export default () => {
    return {
        name: 'list',
        tpl(data) {
            let list = '';
            data.forEach(function (item) {
                list += tplReplace(tpl, {
                    id: item.id,
                    courseName: item.course_name,
                    price: item.price,
                    img: item.img
                })
            });
            return list;
        }
    }
}